var wtage_male_3rd = [
    [36.5, 26.00052871],
    [37.5, 26.26006084],
    [38.5, 26.52164409],
    [39.5, 26.78527071],
    [40.5, 27.05091563],
    [41.5, 27.31852424],
    [42.5, 27.58802554],
    [43.5, 27.85935],
    [44.5, 28.13241501],
    [45.5, 28.40713751],
    [46.5, 28.68343122],
    [47.5, 28.96122308],
    [48.5, 29.24043573],
    [49.5, 29.52100087],
    [50.5, 29.80285757],
    [51.5, 30.08595308],
    [52.5, 30.37024342],
    [53.5, 30.65569357],
    [54.5, 30.94227763],
    [55.5, 31.22997867],
    [56.5, 31.5187851],
    [57.5, 31.80870323],
    [58.5, 32.09973811],
    [59.5, 32.39190482],
    [60.5, 32.68522497],
    [61.5, 32.97972586],
    [62.5, 33.27543969],
    [63.5, 33.57240273],
    [64.5, 33.87065442],
    [65.5, 34.17023647],
    [66.5, 34.47119205],
    [67.5, 34.7735648],
    [68.5, 35.07739807],
    [69.5, 35.38273416],
    [70.5, 35.68961348],
    [71.5, 35.99806973],
    [72.5, 36.30814504],
    [73.5, 36.619867],
    [74.5, 36.93326243],
    [75.5, 37.24835369],
    [76.5, 37.56515833],
    [77.5, 37.88368901],
    [78.5, 38.20395346],
    [79.5, 38.52595448],
    [80.5, 38.84968575],
    [81.5, 39.17514784],
    [82.5, 39.50232691],
    [83.5, 39.83120836],
    [84.5, 40.16177554],
    [85.5, 40.49400542],
    [86.5, 40.8278796],
    [87.5, 41.16337337],
    [88.5, 41.50046309],
    [89.5, 41.83912542],
    [90.5, 42.17933823],
    [91.5, 42.52108133],
    [92.5, 42.86433727],
    [93.5, 43.20909212],
    [94.5, 43.55533134],
    [95.5, 43.90305863],
    [96.5, 44.25227114],
    [97.5, 44.60297602],
    [98.5, 44.95518733],
    [99.5, 45.30892659],
    [100.5, 45.66422304],
    [101.5, 46.0211143],
    [102.5, 46.37964668],
    [103.5, 46.7398743],
    [104.5, 47.10186771],
    [105.5, 47.46569465],
    [106.5, 47.83144078],
    [107.5, 48.19920026],
    [108.5, 48.56907689],
    [109.5, 48.94118445],
    [110.5, 49.31564664],
    [111.5, 49.69259711],
    [112.5, 50.07217919],
    [113.5, 50.45454588],
    [114.5, 50.83985447],
    [115.5, 51.22828407],
    [116.5, 51.62001229],
    [117.5, 52.01522832],
    [118.5, 52.41412968],
    [119.5, 52.81692181],
    [120.5, 53.22381753],
    [121.5, 53.63503664],
    [122.5, 54.05080538],
    [123.5, 54.47135577],
    [124.5, 54.89692507],
    [125.5, 55.32775503],
    [126.5, 55.76409124],
    [127.5, 56.20618236],
    [128.5, 56.65427926],
    [129.5, 57.10863424],
    [130.5, 57.5695023],
    [131.5, 58.03712589],
    [132.5, 58.51177336],
    [133.5, 58.99368055],
    [134.5, 59.48309646],
    [135.5, 59.98026217],
    [136.5, 60.48541316],
    [137.5, 60.99877841],
    [138.5, 61.5205791],
    [139.5, 62.05102754],
    [140.5, 62.59032604],
    [141.5, 63.13866563],
    [142.5, 63.69622505],
    [143.5, 64.26316937],
    [144.5, 64.83964892],
    [145.5, 65.42579817],
    [146.5, 66.02173439],
    [147.5, 66.62755671],
    [148.5, 67.24334476],
    [149.5, 67.8691578],
    [150.5, 68.50503339],
    [151.5, 69.15098456],
    [152.5, 69.80700778],
    [153.5, 70.47306631],
    [154.5, 71.14910152],
    [155.5, 71.83502832],
    [156.5, 72.53073456],
    [157.5, 73.23608008],
    [158.5, 73.95089621],
    [159.5, 74.67498498],
    [160.5, 75.40811863],
    [161.5, 76.15003387],
    [162.5, 76.90044875],
    [163.5, 77.65904071],
    [164.5, 78.42545869],
    [165.5, 79.19932046],
    [166.5, 79.9802124],
    [167.5, 80.76768977],
    [168.5, 81.56127685],
    [169.5, 82.36046722],
    [170.5, 83.1647243],
    [171.5, 83.97348177],
    [172.5, 84.78614445],
    [173.5, 85.60208901],
    [174.5, 86.42066499],
    [175.5, 87.24119593],
    [176.5, 88.06298076],
    [177.5, 88.88529511],
    [178.5, 89.70738491],
    [179.5, 90.52850926],
    [180.5, 91.34786016],
    [181.5, 92.16464717],
    [182.5, 92.97805856],
    [183.5, 93.78727224],
    [184.5, 94.59145868],
    [185.5, 95.38978394],
    [186.5, 96.18140633],
    [187.5, 96.96551313],
    [188.5, 97.74125794],
    [189.5, 98.50783092],
    [190.5, 99.26444418],
    [191.5, 100.0102886],
    [192.5, 100.744613],
    [193.5, 101.4666826],
    [194.5, 102.1757942],
    [195.5, 102.8712801],
    [196.5, 103.5525134],
    [197.5, 104.2189113],
    [198.5, 104.86994],
    [199.5, 105.5051186],
    [200.5, 106.1240225],
    [201.5, 106.7262869],
    [202.5, 107.3116102],
    [203.5, 107.8797561],
    [204.5, 108.430556],
    [205.5, 108.9639106],
    [206.5, 109.479791],
    [207.5, 109.9782273],
    [208.5, 110.4593587],
    [209.5, 110.92335],
    [210.5, 111.3704499],
    [211.5, 111.8009716],
    [212.5, 112.21529],
    [213.5, 112.6138368],
    [214.5, 112.9970954],
    [215.5, 113.3655948],
    [216.5, 113.7199028],
    [217.5, 114.0606174],
    [218.5, 114.3883766],
    [219.5, 114.7037787],
    [220.5, 115.0074618],
    [221.5, 115.300038],
    [222.5, 115.5820906],
    [223.5, 115.8541452],
    [224.5, 116.1167139],
    [225.5, 116.3701736],
    [226.5, 116.6148226],
    [227.5, 116.8508386],
    [228.5, 117.0782555],
    [229.5, 117.2969375],
    [230.5, 117.5065519],
    [231.5, 117.706539],
    [232.5, 117.8960796],
    [233.5, 118.0740592],
    [234.5, 118.2390286],
    [235.5, 118.3891603],
    [236.5, 118.5222002],
    [237.5, 118.6354121],
    [238.5, 118.7255005],
    [239.5, 118.7885988],
    [240, 118.808618]

];
var wtage_male_5th = [
    [36.5, 26.61917078],
    [37.5, 26.88365825],
    [38.5, 27.15052278],
    [39.5, 27.41977819],
    [40.5, 27.69141232],
    [41.5, 27.96538171],
    [42.5, 28.24162216],
    [43.5, 28.52006243],
    [44.5, 28.80061664],
    [45.5, 29.08319396],
    [46.5, 29.36769827],
    [47.5, 29.65404013],
    [48.5, 29.94212626],
    [49.5, 30.23186923],
    [50.5, 30.52318716],
    [51.5, 30.81600478],
    [52.5, 31.11025436],
    [53.5, 31.4058763],
    [54.5, 31.70281954],
    [55.5, 32.00104162],
    [56.5, 32.30050652],
    [57.5, 32.60119328],
    [58.5, 32.903083],
    [59.5, 33.20616664],
    [60.5, 33.51044261],
    [61.5, 33.81591607],
    [62.5, 34.12259851],
    [63.5, 34.43050692],
    [64.5, 34.73966318],
    [65.5, 35.0500933],
    [66.5, 35.36182668],
    [67.5, 35.67489539],
    [68.5, 35.98933345],
    [69.5, 36.30517609],
    [70.5, 36.62245917],
    [71.5, 36.94121548],
    [72.5, 37.26148525],
    [73.5, 37.58329991],
    [74.5, 37.90669166],
    [75.5, 38.2316906],
    [76.5, 38.5583244],
    [77.5, 38.8866181],
    [78.5, 39.21659397],
    [79.5, 39.54827131],
    [80.5, 39.88166349],
    [81.5, 40.21678905],
    [82.5, 40.55365666],
    [83.5, 40.89227465],
    [84.5, 41.23264999],
    [85.5, 41.57478523],
    [86.5, 41.91868637],
    [87.5, 42.26435497],
    [88.5, 42.61179338],
    [89.5, 42.96100437],
    [90.5, 43.31199169],
    [91.5, 43.66476066],
    [92.5, 44.01931879],
    [93.5, 44.37567658],
    [94.5, 44.73384428],
    [95.5, 45.09384607],
    [96.5, 45.4557017],
    [97.5, 45.81943898],
    [98.5, 46.18509148],
    [99.5, 46.55269885],
    [100.5, 46.92230754],
    [101.5, 47.29397092],
    [102.5, 47.66774984],
    [103.5, 48.04371205],
    [104.5, 48.42193855],
    [105.5, 48.80250945],
    [106.5, 49.18551944],
    [107.5, 49.57107082],
    [108.5, 49.95927438],
    [109.5, 50.35024962],
    [110.5, 50.74412484],
    [111.5, 51.14103705],
    [112.5, 51.54113191],
    [113.5, 51.94456353],
    [114.5, 52.35149044],
    [115.5, 52.76208903],
    [116.5, 53.17653541],
    [117.5, 53.59501561],
    [118.5, 54.01772292],
    [119.5, 54.44485748],
    [120.5, 54.87662574],
    [121.5, 55.31324016],
    [122.5, 55.75491854],
    [123.5, 56.20188343],
    [124.5, 56.65436163],
    [125.5, 57.11258333],
    [126.5, 57.57678159],
    [127.5, 58.04719138],
    [128.5, 58.52404897],
    [129.5, 59.00759093],
    [130.5, 59.49805488],
    [131.5, 59.995668],
    [132.5, 60.50067527],
    [133.5, 61.01329582],
    [134.5, 61.53375661],
    [135.5, 62.06227647],
    [136.5, 62.59906761],
    [137.5, 63.14433448],
    [138.5, 63.69827279],
    [139.5, 64.26106819],
    [140.5, 64.83289518],
    [141.5, 65.41391602],
    [142.5, 66.00427942],
    [143.5, 66.60411943],
    [144.5, 67.21355436],
    [145.5, 67.83268547],
    [146.5, 68.46159593],
    [147.5, 69.10034971],
    [148.5, 69.74899039],
    [149.5, 70.40754024],
    [150.5, 71.07599899],
    [151.5, 71.75434163],
    [152.5, 72.44252385],
    [153.5, 73.14046993],
    [154.5, 73.84808061],
    [155.5, 74.56522986],
    [156.5, 75.29176404],
    [157.5, 76.02750144],
    [158.5, 76.77223158],
    [159.5, 77.52571477],
    [160.5, 78.28768176],
    [161.5, 79.05782962],
    [162.5, 79.83583386],
    [163.5, 80.62133295],
    [164.5, 81.41393702],
    [165.5, 82.21322617],
    [166.5, 83.01875067],
    [167.5, 83.83003119],
    [168.5, 84.6465594],
    [169.5, 85.4677985],
    [170.5, 86.29318392],
    [171.5, 87.12212414],
    [172.5, 87.95400178],
    [173.5, 88.78817453],
    [174.5, 89.62397655],
    [175.5, 90.4607198],
    [176.5, 91.29769563],
    [177.5, 92.13417642],
    [178.5, 92.96941168],
    [179.5, 93.80265886],
    [180.5, 94.63312795],
    [181.5, 95.46004134],
    [182.5, 96.28260759],
    [183.5, 97.10002971],
    [184.5, 97.91150811],
    [185.5, 98.71624354],
    [186.5, 99.51343541],
    [187.5, 100.3023089],
    [188.5, 101.0820708],
    [189.5, 101.8519607],
    [190.5, 102.6112411],
    [191.5, 103.3591677],
    [192.5, 104.0950464],
    [193.5, 104.8182042],
    [194.5, 105.5280013],
    [195.5, 106.2238344],
    [196.5, 106.905141],
    [197.5, 107.5714028],
    [198.5, 108.2221496],
    [199.5, 108.8569629],
    [200.5, 109.4754788],
    [201.5, 110.077391],
    [202.5, 110.6624539],
    [203.5, 111.2304843],
    [204.5, 111.7813638],
    [205.5, 112.3150396],
    [206.5, 112.8315258],
    [207.5, 113.3308954],
    [208.5, 113.8133155],
    [209.5, 114.2789879],
    [210.5, 114.7281898],
    [211.5, 115.1612596],
    [212.5, 115.578594],
    [213.5, 115.9806434],
    [214.5, 116.367907],
    [215.5, 116.7409269],
    [216.5, 117.1002813],
    [217.5, 117.4465765],
    [218.5, 117.7804514],
    [219.5, 118.1025165],
    [220.5, 118.4134099],
    [221.5, 118.7137451],
    [222.5, 119.0041053],
    [223.5, 119.2850184],
    [224.5, 119.5569845],
    [225.5, 119.8203821],
    [226.5, 120.0755033],
    [227.5, 120.3225178],
    [228.5, 120.5614485],
    [229.5, 120.792146],
    [230.5, 121.01426],
    [231.5, 121.2272095],
    [232.5, 121.4301494],
    [233.5, 121.6219347],
    [234.5, 121.8010815],
    [235.5, 121.9657236],
    [236.5, 122.1135655],
    [237.5, 122.2418305],
    [238.5, 122.3471911],
    [239.5, 122.4257468],
    [240, 122.4535621]

];

var wtage_male_10th = [
    [36.5, 27.61959097],
    [37.5, 27.89309054],
    [38.5, 28.16948528],
    [39.5, 28.44882049],
    [40.5, 28.73110271],
    [41.5, 29.0163047],
    [42.5, 29.3043722],
    [43.5, 29.59523134],
    [44.5, 29.88879124],
    [45.5, 30.18494941],
    [46.5, 30.48359483],
    [47.5, 30.78461335],
    [48.5, 31.08788769],
    [49.5, 31.39330143],
    [50.5, 31.7007409],
    [51.5, 32.0100966],
    [52.5, 32.32126473],
    [53.5, 32.63414825],
    [54.5, 32.94865763],
    [55.5, 33.26471159],
    [56.5, 33.58223678],
    [57.5, 33.90117051],
    [58.5, 34.22145734],
    [59.5, 34.54305131],
    [60.5, 34.86591526],
    [61.5, 35.19002058],
    [62.5, 35.51534683],
    [63.5, 35.84188153],
    [64.5, 36.16961953],
    [65.5, 36.49856269],
    [66.5, 36.82871927],
    [67.5, 37.16010342],
    [68.5, 37.49273466],
    [69.5, 37.82663731],
    [70.5, 38.16183991],
    [71.5, 38.49837378],
    [72.5, 38.83627596],
    [73.5, 39.17558377],
    [74.5, 39.51633737],
    [75.5, 39.85857872],
    [76.5, 40.20235098],
    [77.5, 40.54769829],
    [78.5, 40.89466531],
    [79.5, 41.243297],
    [80.5, 41.59363729],
    [81.5, 41.94573288],
    [82.5, 42.29962761],
    [83.5, 42.65536581],
    [84.5, 43.01299176],
    [85.5, 43.37254847],
    [86.5, 43.73408065],
    [87.5, 44.0976316],
    [88.5, 44.46324527],
    [89.5, 44.83096616],
    [90.5, 45.2008396],
    [91.5, 45.57291202],
    [92.5, 45.9472314],
    [93.5, 46.32384761],
    [94.5, 46.7028113],
    [95.5, 47.08417993],
    [96.5, 47.46801033],
    [97.5, 47.85436396],
    [98.5, 48.24330628],
    [99.5, 48.634907],
    [100.5, 49.02924055],
    [101.5, 49.42638633],
    [102.5, 49.82642911],
    [103.5, 50.22945897],
    [104.5, 50.63557415],
    [105.5, 51.04487505],
    [106.5, 51.45747103],
    [107.5, 51.87347757],
    [108.5, 52.2930166],
    [109.5, 52.71621678],
    [110.5, 53.14321346],
    [111.5, 53.57414869],
    [112.5, 54.00917113],
    [113.5, 54.44843604],
    [114.5, 54.89210302],
    [115.5, 55.34034284],
    [116.5, 55.7933281],
    [117.5, 56.25123825],
    [118.5, 56.71425815],
    [119.5, 57.18257758],
    [120.5, 57.65639092],
    [121.5, 58.13589659],
    [122.5, 58.62129654],
    [123.5, 59.1127957],
    [124.5, 59.61060134],
    [125.5, 60.11492238],
    [126.5, 60.62596874],
    [127.5, 61.14395052],
    [128.5, 61.66907718],
    [129.5, 62.20155676],
    [130.5, 62.74159571],
    [131.5, 63.28939289],
    [132.5, 63.84515262],
    [133.5, 64.40906331],
    [134.5, 64.98131299],
    [135.5, 65.56208109],
    [136.5, 66.15153873],
    [137.5, 66.74984754],
    [138.5, 67.35715859],
    [139.5, 67.97361129],
    [140.5, 68.59933219],
    [141.5, 69.23443391],
    [142.5, 69.879014],
    [143.5, 70.53315379],
    [144.5, 71.19691731],
    [145.5, 71.87035018],
    [146.5, 72.55347851],
    [147.5, 73.24630797],
    [148.5, 73.94882262],
    [149.5, 74.66098402],
    [150.5, 75.38273041],
    [151.5, 76.11397501],
    [152.5, 76.85460816],
    [153.5, 77.60449176],
    [154.5, 78.36346221],
    [155.5, 79.13132878],
    [156.5, 79.90787317],
    [157.5, 80.6928489],
    [158.5, 81.4859811],
    [159.5, 82.28696628],
    [160.5, 83.09547202],
    [161.5, 83.9111357],
    [162.5, 84.73356907],
    [163.5, 85.56235272],
    [164.5, 86.3970397],
    [165.5, 87.23715513],
    [166.5, 88.08219693],
    [167.5, 88.93163631],
    [168.5, 89.78491878],
    [169.5, 90.64146494],
    [170.5, 91.50067168],
    [171.5, 92.36191331],
    [172.5, 93.22454297],
    [173.5, 94.08789403],
    [174.5, 94.95128181],
    [175.5, 95.81400519],
    [176.5, 96.67534862],
    [177.5, 97.53458392],
    [178.5, 98.39097055],
    [179.5, 99.2437677],
    [180.5, 100.0922168],
    [181.5, 100.9355636],
    [182.5, 101.7730512],
    [183.5, 102.6039242],
    [184.5, 103.4274318],
    [185.5, 104.2428303],
    [186.5, 105.0493844],
    [187.5, 105.8463792],
    [188.5, 106.6331047],
    [189.5, 107.4088776],
    [190.5, 108.1730386],
    [191.5, 108.9249441],
    [192.5, 109.6639875],
    [193.5, 110.3895916],
    [194.5, 111.101214],
    [195.5, 111.7983501],
    [196.5, 112.4805365],
    [197.5, 113.1473538],
    [198.5, 113.7984292],
    [199.5, 114.4334396],
    [200.5, 115.0521139],
    [201.5, 115.6542352],
    [202.5, 116.2396434],
    [203.5, 116.8082361],
    [204.5, 117.3599707],
    [205.5, 117.8948652],
    [206.5, 118.4129987],
    [207.5, 118.9145087],
    [208.5, 119.3996036],
    [209.5, 119.8685403],
    [210.5, 120.321638],
    [211.5, 120.759272],
    [212.5, 121.1818703],
    [213.5, 121.5899098],
    [214.5, 121.9839116],
    [215.5, 122.3644356],
    [216.5, 122.7320737],
    [217.5, 123.0874424],
    [218.5, 123.4311805],
    [219.5, 123.7639152],
    [220.5, 124.0862832],
    [221.5, 124.3988994],
    [222.5, 124.7023468],
    [223.5, 124.997158],
    [224.5, 125.2838162],
    [225.5, 125.5627054],
    [226.5, 125.8341139],
    [227.5, 126.0982055],
    [228.5, 126.354996],
    [229.5, 126.6043265],
    [230.5, 126.8458354],
    [231.5, 127.0789276],
    [232.5, 127.3027414],
    [233.5, 127.5161128],
    [234.5, 127.717537],
    [235.5, 127.9051271],
    [236.5, 128.0765695],
    [237.5, 128.2290761],
    [238.5, 128.3593288],
    [239.5, 128.4634399],
    [240, 128.5043006]

];

var wtage_male_25th = [
    [36.5, 29.43325823],
    [37.5, 29.72633833],
    [38.5, 30.02323964],
    [39.5, 30.32405123],
    [40.5, 30.62880548],
    [41.5, 30.9374969],
    [42.5, 31.25008392],
    [43.5, 31.566487],
    [44.5, 31.88660559],
    [45.5, 32.21031755],
    [46.5, 32.53748714],
    [47.5, 32.86796066],
    [48.5, 33.20158182],
    [49.5, 33.53818769],
    [50.5, 33.87761342],
    [51.5, 34.21969463],
    [52.5, 34.56426965],
    [53.5, 34.91118129],
    [54.5, 35.26027846],
    [55.5, 35.61141749],
    [56.5, 35.96446506],
    [57.5, 36.319292],
    [58.5, 36.6757842],
    [59.5, 37.0338366],
    [60.5, 37.39335519],
    [61.5, 37.75425722],
    [62.5, 38.11647145],
    [63.5, 38.47993816],
    [64.5, 38.84460914],
    [65.5, 39.21044763],
    [66.5, 39.57742811],
    [67.5, 39.94553614],
    [68.5, 40.31476805],
    [69.5, 40.68513068],
    [70.5, 41.05664101],
    [71.5, 41.42932776],
    [72.5, 41.80322333],
    [73.5, 42.17837435],
    [74.5, 42.55483415],
    [75.5, 42.93266393],
    [76.5, 43.31193236],
    [77.5, 43.69271487],
    [78.5, 44.07509319],
    [79.5, 44.45915481],
    [80.5, 44.84499437],
    [81.5, 45.232706],
    [82.5, 45.62239255],
    [83.5, 46.01415918],
    [84.5, 46.40811355],
    [85.5, 46.80436772],
    [86.5, 47.20303298],
    [87.5, 47.60422471],
    [88.5, 48.00805909],
    [89.5, 48.4146535],
    [90.5, 48.82412614],
    [91.5, 49.23659609],
    [92.5, 49.65218295],
    [93.5, 50.07100688],
    [94.5, 50.49319042],
    [95.5, 50.91885148],
    [96.5, 51.34811334],
    [97.5, 51.78109849],
    [98.5, 52.2179302],
    [99.5, 52.65873274],
    [100.5, 53.10363148],
    [101.5, 53.55275317],
    [102.5, 54.00622608],
    [103.5, 54.46418054],
    [104.5, 54.92674618],
    [105.5, 55.39405927],
    [106.5, 55.86625524],
    [107.5, 56.34347235],
    [108.5, 56.82585135],
    [109.5, 57.31353558],
    [110.5, 57.80667092],
    [111.5, 58.30540582],
    [112.5, 58.80989127],
    [113.5, 59.32028078],
    [114.5, 59.8367315],
    [115.5, 60.35939958],
    [116.5, 60.88844584],
    [117.5, 61.42403197],
    [118.5, 61.96632119],
    [119.5, 62.51547771],
    [120.5, 63.0716665],
    [121.5, 63.63505269],
    [122.5, 64.2058012],
    [123.5, 64.78407613],
    [124.5, 65.37004012],
    [125.5, 65.96385393],
    [126.5, 66.56567551],
    [127.5, 67.17565943],
    [128.5, 67.79395612],
    [129.5, 68.42071104],
    [130.5, 69.05606319],
    [131.5, 69.70014876],
    [132.5, 70.35308768],
    [133.5, 71.01500122],
    [134.5, 71.68599583],
    [135.5, 72.3661688],
    [136.5, 73.0556061],
    [137.5, 73.7543814],
    [138.5, 74.46255511],
    [139.5, 75.18017333],
    [140.5, 75.90726686],
    [141.5, 76.64385034],
    [142.5, 77.38992111],
    [143.5, 78.14545842],
    [144.5, 78.91042236],
    [145.5, 79.68475308],
    [146.5, 80.46836985],
    [147.5, 81.26117032],
    [148.5, 82.06302962],
    [149.5, 82.8737998],
    [150.5, 83.693309],
    [151.5, 84.52136176],
    [152.5, 85.35773486],
    [153.5, 86.20218299],
    [154.5, 87.05443371],
    [155.5, 87.91418845],
    [156.5, 88.78112234],
    [157.5, 89.65488413],
    [158.5, 90.53509621],
    [159.5, 91.42135473],
    [160.5, 92.31322973],
    [161.5, 93.21026816],
    [162.5, 94.11198619],
    [163.5, 95.01787988],
    [164.5, 95.92742016],
    [165.5, 96.84005503],
    [166.5, 97.75521043],
    [167.5, 98.67229152],
    [168.5, 99.59068376],
    [169.5, 100.5097545],
    [170.5, 101.4288543],
    [171.5, 102.3473187],
    [172.5, 103.2644701],
    [173.5, 104.1796196],
    [174.5, 105.0920687],
    [175.5, 106.0011118],
    [176.5, 106.9060384],
    [177.5, 107.8061352],
    [178.5, 108.7006924],
    [179.5, 109.5889865],
    [180.5, 110.4703222],
    [181.5, 111.3439958],
    [182.5, 112.2093166],
    [183.5, 113.0656063],
    [184.5, 113.9122015],
    [185.5, 114.7484555],
    [186.5, 115.5737444],
    [187.5, 116.3874552],
    [188.5, 117.189016],
    [189.5, 117.9778707],
    [190.5, 118.7534883],
    [191.5, 119.5153878],
    [192.5, 120.2631047],
    [193.5, 120.9962153],
    [194.5, 121.7143333],
    [195.5, 122.4171117],
    [196.5, 123.1042445],
    [197.5, 123.775469],
    [198.5, 124.4305665],
    [199.5, 125.0693644],
    [200.5, 125.6917376],
    [201.5, 126.2976092],
    [202.5, 126.886952],
    [203.5, 127.4597895],
    [204.5, 128.016196],
    [205.5, 128.5562977],
    [206.5, 129.0802723],
    [207.5, 129.5883543],
    [208.5, 130.0808117],
    [209.5, 130.5579823],
    [210.5, 131.0202449],
    [211.5, 131.4680252],
    [212.5, 131.9017926],
    [213.5, 132.3220573],
    [214.5, 132.7293666],
    [215.5, 133.1242993],
    [216.5, 133.5074604],
    [217.5, 133.8794746],
    [218.5, 134.2409721],
    [219.5, 134.5926017],
    [220.5, 134.9349933],
    [221.5, 135.2687619],
    [222.5, 135.5944916],
    [223.5, 135.9127269],
    [224.5, 136.223933],
    [225.5, 136.5285181],
    [226.5, 136.8267854],
    [227.5, 137.1189188],
    [228.5, 137.4049605],
    [229.5, 137.6847854],
    [230.5, 137.9580745],
    [231.5, 138.2242849],
    [232.5, 138.4826187],
    [233.5, 138.7319897],
    [234.5, 138.9709874],
    [235.5, 139.1978409],
    [236.5, 139.4103795],
    [237.5, 139.605994],
    [238.5, 139.7816037],
    [239.5, 139.9335898],
    [240, 139.9994475]

];

var wtage_male_50th = [
    [36.5, 31.68578048],
    [37.5, 32.00922151],
    [38.5, 32.33765317],
    [39.5, 32.67119132],
    [40.5, 33.00988115],
    [41.5, 33.35372599],
    [42.5, 33.70268541],
    [43.5, 34.05666689],
    [44.5, 34.4155528],
    [45.5, 34.77919577],
    [46.5, 35.14743003],
    [47.5, 35.52006027],
    [48.5, 35.89688799],
    [49.5, 36.27770212],
    [50.5, 36.66228564],
    [51.5, 37.05041886],
    [52.5, 37.44188241],
    [53.5, 37.83645976],
    [54.5, 38.2339395],
    [55.5, 38.63411739],
    [56.5, 39.0368018],
    [57.5, 39.44180066],
    [58.5, 39.84894375],
    [59.5, 40.25807029],
    [60.5, 40.66903309],
    [61.5, 41.08169923],
    [62.5, 41.49595067],
    [63.5, 41.91168474],
    [64.5, 42.32881442],
    [65.5, 42.74726856],
    [66.5, 43.16699215],
    [67.5, 43.58794616],
    [68.5, 44.01010768],
    [69.5, 44.43346976],
    [70.5, 44.85804118],
    [71.5, 45.28385096],
    [72.5, 45.71093043],
    [73.5, 46.13933788],
    [74.5, 46.56914222],
    [75.5, 47.00042629],
    [76.5, 47.43328627],
    [77.5, 47.86783113],
    [78.5, 48.30418179],
    [79.5, 48.74247052],
    [80.5, 49.18284496],
    [81.5, 49.6254499],
    [82.5, 50.07045028],
    [83.5, 50.51801568],
    [84.5, 50.96832154],
    [85.5, 51.4215535],
    [86.5, 51.87789519],
    [87.5, 52.33754011],
    [88.5, 52.80068341],
    [89.5, 53.26752262],
    [90.5, 53.73825695],
    [91.5, 54.2130864],
    [92.5, 54.69221111],
    [93.5, 55.17583067],
    [94.5, 55.66414885],
    [95.5, 56.15735349],
    [96.5, 56.65564362],
    [97.5, 57.15921178],
    [98.5, 57.66824778],
    [99.5, 58.18293859],
    [100.5, 58.70346805],
    [101.5, 59.23001687],
    [102.5, 59.76276238],
    [103.5, 60.30187986],
    [104.5, 60.84753352],
    [105.5, 61.39989753],
    [106.5, 61.95913381],
    [107.5, 62.52540237],
    [108.5, 63.09886011],
    [109.5, 63.67966064],
    [110.5, 64.26795419],
    [111.5, 64.86388759],
    [112.5, 65.46760436],
    [113.5, 66.07924446],
    [114.5, 66.69894917],
    [115.5, 67.32684435],
    [116.5, 67.96306158],
    [117.5, 68.60772565],
    [118.5, 69.26095693],
    [119.5, 69.92287124],
    [120.5, 70.59357936],
    [121.5, 71.27318689],
    [122.5, 71.96179364],
    [123.5, 72.65949337],
    [124.5, 73.36637326],
    [125.5, 74.08251341],
    [126.5, 74.80798637],
    [127.5, 75.54285655],
    [128.5, 76.28717967],
    [129.5, 77.0410021],
    [130.5, 77.80435821],
    [131.5, 78.57728391],
    [132.5, 79.35977652],
    [133.5, 80.15185191],
    [134.5, 80.95349662],
    [135.5, 81.76468762],
    [136.5, 82.5853879],
    [137.5, 83.41554586],
    [138.5, 84.25509466],
    [139.5, 85.10395146],
    [140.5, 85.96201682],
    [141.5, 86.82917415],
    [142.5, 87.70528897],
    [143.5, 88.59020834],
    [144.5, 89.48376048],
    [145.5, 90.38575399],
    [146.5, 91.29597761],
    [147.5, 92.21419962],
    [148.5, 93.14016752],
    [149.5, 94.07360772],
    [150.5, 95.01422522],
    [151.5, 95.96170547],
    [152.5, 96.91570482],
    [153.5, 97.87586659],
    [154.5, 98.84180863],
    [155.5, 99.81312693],
    [156.5, 100.7893958],
    [157.5, 101.770168],
    [158.5, 102.7549754],
    [159.5, 103.743329],
    [160.5, 104.7347196],
    [161.5, 105.7286246],
    [162.5, 106.724489],
    [163.5, 107.7217509],
    [164.5, 108.7198282],
    [165.5, 109.718123],
    [166.5, 110.7160225],
    [167.5, 111.7129007],
    [168.5, 112.7081193],
    [169.5, 113.7010298],
    [170.5, 114.6909745],
    [171.5, 115.6772888],
    [172.5, 116.6593029],
    [173.5, 117.6363436],
    [174.5, 118.6077362],
    [175.5, 119.5728074],
    [176.5, 120.5308865],
    [177.5, 121.4813085],
    [178.5, 122.4234249],
    [179.5, 123.356561],
    [180.5, 124.280109],
    [181.5, 125.1934395],
    [182.5, 126.0959493],
    [183.5, 126.9870546],
    [184.5, 127.8661933],
    [185.5, 128.7328271],
    [186.5, 129.5864506],
    [187.5, 130.4265589],
    [188.5, 131.2527178],
    [189.5, 132.0644975],
    [190.5, 132.8614919],
    [191.5, 133.6433733],
    [192.5, 134.4098106],
    [193.5, 135.1605217],
    [194.5, 135.8952622],
    [195.5, 136.6138268],
    [196.5, 137.3160498],
    [197.5, 138.001806],
    [198.5, 138.6710106],
    [199.5, 139.3236205],
    [200.5, 139.9596338],
    [201.5, 140.5790906],
    [202.5, 141.1820727],
    [203.5, 141.7687044],
    [204.5, 142.3391514],
    [205.5, 142.8936218],
    [206.5, 143.4323649],
    [207.5, 143.9556841],
    [208.5, 144.4638803],
    [209.5, 144.9573426],
    [210.5, 145.4364805],
    [211.5, 145.9017408],
    [212.5, 146.3536056],
    [213.5, 146.7925897],
    [214.5, 147.2192384],
    [215.5, 147.634123],
    [216.5, 148.0378373],
    [217.5, 148.4309916],
    [218.5, 148.8141903],
    [219.5, 149.1880885],
    [220.5, 149.5533013],
    [221.5, 149.9104425],
    [222.5, 150.2601043],
    [223.5, 150.6028599],
    [224.5, 150.9391878],
    [225.5, 151.2695638],
    [226.5, 151.5943666],
    [227.5, 151.9138814],
    [228.5, 152.2282803],
    [229.5, 152.5376023],
    [230.5, 152.8417302],
    [231.5, 153.1403672],
    [232.5, 153.4330107],
    [233.5, 153.7189255],
    [234.5, 153.9971157],
    [235.5, 154.2662964],
    [236.5, 154.5248646],
    [237.5, 154.7708718],
    [238.5, 155.0020143],
    [239.5, 155.2155468],
    [240, 155.314752]

];

var wtage_male_75th = [
    [36.5, 34.23171026],
    [37.5, 34.59785756],
    [38.5, 34.97042762],
    [39.5, 35.3495237],
    [40.5, 35.73517339],
    [41.5, 36.12735764],
    [42.5, 36.52600967],
    [43.5, 36.93100657],
    [44.5, 37.34219707],
    [45.5, 37.75939704],
    [46.5, 38.18240162],
    [47.5, 38.6109737],
    [48.5, 39.04487171],
    [49.5, 39.48384015],
    [50.5, 39.92761678],
    [51.5, 40.3759365],
    [52.5, 40.82853467],
    [53.5, 41.28515019],
    [54.5, 41.74552822],
    [55.5, 42.20942262],
    [56.5, 42.67660223],
    [57.5, 43.14683666],
    [58.5, 43.61992103],
    [59.5, 44.09566242],
    [60.5, 44.5738847],
    [61.5, 45.05442931],
    [62.5, 45.53715608],
    [63.5, 46.02194388],
    [64.5, 46.50869087],
    [65.5, 46.99731494],
    [66.5, 47.4877539],
    [67.5, 47.9799654],
    [68.5, 48.47392708],
    [69.5, 48.96963634],
    [70.5, 49.46711015],
    [71.5, 49.96639025],
    [72.5, 50.4675224],
    [73.5, 50.97058492],
    [74.5, 51.47566981],
    [75.5, 51.98288667],
    [76.5, 52.49236203],
    [77.5, 53.00423865],
    [78.5, 53.51867477],
    [79.5, 54.03584333],
    [80.5, 54.55593691],
    [81.5, 55.07914581],
    [82.5, 55.60568583],
    [83.5, 56.13577959],
    [84.5, 56.66965795],
    [85.5, 57.20756538],
    [86.5, 57.74974469],
    [87.5, 58.29645169],
    [88.5, 58.84794491],
    [89.5, 59.40448635],
    [90.5, 59.96634021],
    [91.5, 60.53377165],
    [92.5, 61.1070456],
    [93.5, 61.68642564],
    [94.5, 62.27217968],
    [95.5, 62.86455351],
    [96.5, 63.46380561],
    [97.5, 64.07018387],
    [98.5, 64.68392988],
    [99.5, 65.30527846],
    [100.5, 65.93445687],
    [101.5, 66.57168437],
    [102.5, 67.21717156],
    [103.5, 67.87112169],
    [104.5, 68.5337182],
    [105.5, 69.20515285],
    [106.5, 69.88559541],
    [107.5, 70.57520723],
    [108.5, 71.27413975],
    [109.5, 71.98253372],
    [110.5, 72.70051921],
    [111.5, 73.42821545],
    [112.5, 74.16573076],
    [113.5, 74.91316243],
    [114.5, 75.67060367],
    [115.5, 76.4381196],
    [116.5, 77.21577802],
    [117.5, 78.00363138],
    [118.5, 78.8017206],
    [119.5, 79.61007507],
    [120.5, 80.42871241],
    [121.5, 81.25763844],
    [122.5, 82.09684707],
    [123.5, 82.94632007],
    [124.5, 83.80602703],
    [125.5, 84.67592511],
    [126.5, 85.55595902],
    [127.5, 86.44606071],
    [128.5, 87.34614937],
    [129.5, 88.25613111],
    [130.5, 89.17589602],
    [131.5, 90.10533734],
    [132.5, 91.04429756],
    [133.5, 91.99264701],
    [134.5, 92.95021932],
    [135.5, 93.91683917],
    [136.5, 94.89231715],
    [137.5, 95.87644961],
    [138.5, 96.86901864],
    [139.5, 97.86979182],
    [140.5, 98.87852225],
    [141.5, 99.89494845],
    [142.5, 100.9187942],
    [143.5, 101.9497688],
    [144.5, 102.9875666],
    [145.5, 104.0318675],
    [146.5, 105.0823364],
    [147.5, 106.1386239],
    [148.5, 107.2003659],
    [149.5, 108.2671837],
    [150.5, 109.3386846],
    [151.5, 110.4144642],
    [152.5, 111.4940946],
    [153.5, 112.5771458],
    [154.5, 113.6631693],
    [155.5, 114.7517035],
    [156.5, 115.8422739],
    [157.5, 116.9343935],
    [158.5, 118.027563],
    [159.5, 119.1212716],
    [160.5, 120.2149975],
    [161.5, 121.3082152],
    [162.5, 122.4003738],
    [163.5, 123.4909256],
    [164.5, 124.5793111],
    [165.5, 125.6649633],
    [166.5, 126.7473084],
    [167.5, 127.825767],
    [168.5, 128.8997547],
    [169.5, 129.9686836],
    [170.5, 131.0319637],
    [171.5, 132.0890033],
    [172.5, 133.1392113],
    [173.5, 134.1819979],
    [174.5, 135.2167764],
    [175.5, 136.2429648],
    [176.5, 137.2599873],
    [177.5, 138.2672757],
    [178.5, 139.2642825],
    [179.5, 140.2504287],
    [180.5, 141.2252123],
    [181.5, 142.1881039],
    [182.5, 143.1386013],
    [183.5, 144.076221],
    [184.5, 145.0004997],
    [185.5, 145.9109964],
    [186.5, 146.8073016],
    [187.5, 147.6889988],
    [188.5, 148.5557469],
    [189.5, 149.4072003],
    [190.5, 150.2430318],
    [191.5, 151.0629964],
    [192.5, 151.866834],
    [193.5, 152.6543307],
    [194.5, 153.4253051],
    [195.5, 154.1796093],
    [196.5, 154.917129],
    [197.5, 155.6377837],
    [198.5, 156.341527],
    [199.5, 157.0283466],
    [200.5, 157.6982642],
    [201.5, 158.3513353],
    [202.5, 158.9876492],
    [203.5, 159.6073288],
    [204.5, 160.2105305],
    [205.5, 160.7974438],
    [206.5, 161.3682911],
    [207.5, 161.9233433],
    [208.5, 162.4628509],
    [209.5, 162.9871561],
    [210.5, 163.4966111],
    [211.5, 163.9915993],
    [212.5, 164.4725351],
    [213.5, 164.9398631],
    [214.5, 165.394057],
    [215.5, 165.8356185],
    [216.5, 166.2650745],
    [217.5, 166.682976],
    [218.5, 167.0898718],
    [219.5, 167.4863904],
    [220.5, 167.8731257],
    [221.5, 168.2506966],
    [222.5, 168.619728],
    [223.5, 168.9808631],
    [224.5, 169.3346772],
    [225.5, 169.6818045],
    [226.5, 170.0228306],
    [227.5, 170.3583097],
    [228.5, 170.6887538],
    [229.5, 171.0146222],
    [230.5, 171.3363095],
    [231.5, 171.6541322],
    [232.5, 171.9683158],
    [233.5, 172.2789792],
    [234.5, 172.5861213],
    [235.5, 172.8896054],
    [236.5, 173.1891456],
    [237.5, 173.484294],
    [238.5, 173.7744491],
    [239.5, 174.0587732],
    [240, 174.1984526]

];

var wtage_male_90th = [
    [36.5, 36.81971231],
    [37.5, 37.23873162],
    [38.5, 37.66586307],
    [39.5, 38.10114618],
    [40.5, 38.54454943],
    [41.5, 38.99598776],
    [42.5, 39.45532793],
    [43.5, 39.92239],
    [44.5, 40.39696307],
    [45.5, 40.87880779],
    [46.5, 41.3676652],
    [47.5, 41.86325504],
    [48.5, 42.3652909],
    [49.5, 42.87347889],
    [50.5, 43.38752323],
    [51.5, 43.90713028],
    [52.5, 44.43201191],
    [53.5, 44.96188873],
    [54.5, 45.49649278],
    [55.5, 46.03556989],
    [56.5, 46.57888385],
    [57.5, 47.1262106],
    [58.5, 47.67735047],
    [59.5, 48.23212249],
    [60.5, 48.79036699],
    [61.5, 49.35194634],
    [62.5, 49.91674534],
    [63.5, 50.48467158],
    [64.5, 51.05565553],
    [65.5, 51.62965045],
    [66.5, 52.20663217],
    [67.5, 52.78659885],
    [68.5, 53.36957043],
    [69.5, 53.95558813],
    [70.5, 54.54471385],
    [71.5, 55.13703226],
    [72.5, 55.73263947],
    [73.5, 56.33165725],
    [74.5, 56.93422269],
    [75.5, 57.54048949],
    [76.5, 58.15062713],
    [77.5, 58.76481989],
    [78.5, 59.38326585],
    [79.5, 60.00617583],
    [80.5, 60.6337758],
    [81.5, 61.26629384],
    [82.5, 61.90397539],
    [83.5, 62.5470721],
    [84.5, 63.1958422],
    [85.5, 63.85055307],
    [86.5, 64.51147175],
    [87.5, 65.17887317],
    [88.5, 65.85303344],
    [89.5, 66.53422989],
    [90.5, 67.22273963],
    [91.5, 67.91883833],
    [92.5, 68.62279897],
    [93.5, 69.33489044],
    [94.5, 70.05538078],
    [95.5, 70.78451954],
    [96.5, 71.52255961],
    [97.5, 72.26974154],
    [98.5, 73.02629605],
    [99.5, 73.79244277],
    [100.5, 74.5683895],
    [101.5, 75.35433125],
    [102.5, 76.15044934],
    [103.5, 76.95691183],
    [104.5, 77.77386487],
    [105.5, 78.60145095],
    [106.5, 79.43978838],
    [107.5, 80.28898024],
    [108.5, 81.14911288],
    [109.5, 82.02025537],
    [110.5, 82.90245938],
    [111.5, 83.79575893],
    [112.5, 84.70017037],
    [113.5, 85.61569236],
    [114.5, 86.54231082],
    [115.5, 87.47998193],
    [116.5, 88.4286544],
    [117.5, 89.38825667],
    [118.5, 90.35870012],
    [119.5, 91.33987911],
    [120.5, 92.33167148],
    [121.5, 93.33393861],
    [122.5, 94.34652605],
    [123.5, 95.36926368],
    [124.5, 96.40196619],
    [125.5, 97.44443348],
    [126.5, 98.49645113],
    [127.5, 99.55779086],
    [128.5, 100.628211],
    [129.5, 101.7074568],
    [130.5, 102.7952594],
    [131.5, 103.8913491],
    [132.5, 104.9954196],
    [133.5, 106.1071817],
    [134.5, 107.2263206],
    [135.5, 108.3525149],
    [136.5, 109.485434],
    [137.5, 110.6247385],
    [138.5, 111.7700808],
    [139.5, 112.9211055],
    [140.5, 114.07745],
    [141.5, 115.2387451],
    [142.5, 116.4046151],
    [143.5, 117.5746786],
    [144.5, 118.748549],
    [145.5, 119.9258345],
    [146.5, 121.1061391],
    [147.5, 122.2890625],
    [148.5, 123.4742007],
    [149.5, 124.6611465],
    [150.5, 125.8494893],
    [151.5, 127.0388178],
    [152.5, 128.2287123],
    [153.5, 129.4187579],
    [154.5, 130.6085349],
    [155.5, 131.797622],
    [156.5, 132.9855962],
    [157.5, 134.1720333],
    [158.5, 135.356508],
    [159.5, 136.5385938],
    [160.5, 137.7178637],
    [161.5, 138.8938935],
    [162.5, 140.0662499],
    [163.5, 141.2345061],
    [164.5, 142.398233],
    [165.5, 143.5570013],
    [166.5, 144.7103814],
    [167.5, 145.8579439],
    [168.5, 146.9992594],
    [169.5, 148.1338987],
    [170.5, 149.2614332],
    [171.5, 150.3814348],
    [172.5, 151.4934763],
    [173.5, 152.5971315],
    [174.5, 153.6919757],
    [175.5, 154.7775858],
    [176.5, 155.8535409],
    [177.5, 156.9194226],
    [178.5, 157.9748209],
    [179.5, 159.0193075],
    [180.5, 160.0524912],
    [181.5, 161.0739636],
    [182.5, 162.0833273],
    [183.5, 163.0801912],
    [184.5, 164.0641712],
    [185.5, 165.0348913],
    [186.5, 165.9919884],
    [187.5, 166.9350919],
    [188.5, 167.8638681],
    [189.5, 168.7779774],
    [190.5, 169.677087],
    [191.5, 170.5609055],
    [192.5, 171.4291311],
    [193.5, 172.281485],
    [194.5, 173.117705],
    [195.5, 173.937546],
    [196.5, 174.7407811],
    [197.5, 175.5272028],
    [198.5, 176.2966229],
    [199.5, 177.0488745],
    [200.5, 177.7838118],
    [201.5, 178.5013116],
    [202.5, 179.2012737],
    [203.5, 179.8836224],
    [204.5, 180.5483067],
    [205.5, 181.195302],
    [206.5, 181.824611],
    [207.5, 182.436274],
    [208.5, 183.0303309],
    [209.5, 183.6068875],
    [210.5, 184.16607],
    [211.5, 184.7080399],
    [212.5, 185.232996],
    [213.5, 185.7411766],
    [214.5, 186.2328615],
    [215.5, 186.7083751],
    [216.5, 187.168088],
    [217.5, 187.6124203],
    [218.5, 188.0418288],
    [219.5, 188.4568673],
    [220.5, 188.858114],
    [221.5, 189.2462188],
    [222.5, 189.6218971],
    [223.5, 189.9859437],
    [224.5, 190.3391881],
    [225.5, 190.68258],
    [226.5, 191.0171319],
    [227.5, 191.3439391],
    [228.5, 191.6641834],
    [229.5, 191.9791375],
    [230.5, 192.2901685],
    [231.5, 192.5987422],
    [232.5, 192.9064276],
    [233.5, 193.2149005],
    [234.5, 193.5259488],
    [235.5, 193.8414764],
    [236.5, 194.163509],
    [237.5, 194.4941988],
    [238.5, 194.8358421],
    [239.5, 195.190845],
    [240, 195.3741576]

];

var wtage_male_95th = [
    [36.5, 38.52403865],
    [37.5, 38.98322868],
    [38.5, 39.45183444],
    [39.5, 39.92982453],
    [40.5, 40.41710391],
    [41.5, 40.913517],
    [42.5, 41.41886078],
    [43.5, 41.9328989],
    [44.5, 42.45536247],
    [45.5, 42.98596111],
    [46.5, 43.52438752],
    [47.5, 44.07032907],
    [48.5, 44.62346566],
    [49.5, 45.18347926],
    [50.5, 45.75005719],
    [51.5, 46.32289598],
    [52.5, 46.90170476],
    [53.5, 47.48620824],
    [54.5, 48.07614918],
    [55.5, 48.67129051],
    [56.5, 49.27141604],
    [57.5, 49.87633649],
    [58.5, 50.48588378],
    [59.5, 51.09991632],
    [60.5, 51.71831843],
    [61.5, 52.3410006],
    [62.5, 52.96789964],
    [63.5, 53.59897836],
    [64.5, 54.23422528],
    [65.5, 54.873654],
    [66.5, 55.51730261],
    [67.5, 56.1652326],
    [68.5, 56.81752804],
    [69.5, 57.47429437],
    [70.5, 58.13565721],
    [71.5, 58.80175974],
    [72.5, 59.47276643],
    [73.5, 60.1488543],
    [74.5, 60.83021626],
    [75.5, 61.51705835],
    [76.5, 62.20959846],
    [77.5, 62.90806469],
    [78.5, 63.61269402],
    [79.5, 64.32373081],
    [80.5, 65.04142412],
    [81.5, 65.76603084],
    [82.5, 66.49780808],
    [83.5, 67.23701576],
    [84.5, 67.98391464],
    [85.5, 68.73876379],
    [86.5, 69.50182215],
    [87.5, 70.27334422],
    [88.5, 71.05358071],
    [89.5, 71.84277696],
    [90.5, 72.64117188],
    [91.5, 73.44899692],
    [92.5, 74.26647494],
    [93.5, 75.09381935],
    [94.5, 75.9312319],
    [95.5, 76.77890585],
    [96.5, 77.63701937],
    [97.5, 78.50573823],
    [98.5, 79.38521411],
    [99.5, 80.27558387],
    [100.5, 81.17696873],
    [101.5, 82.08947366],
    [102.5, 83.01318672],
    [103.5, 83.94817831],
    [104.5, 84.89450222],
    [105.5, 85.85219155],
    [106.5, 86.82126215],
    [107.5, 87.80171079],
    [108.5, 88.79351488],
    [109.5, 89.79663257],
    [110.5, 90.81100266],
    [111.5, 91.83654462],
    [112.5, 92.87315875],
    [113.5, 93.92072628],
    [114.5, 94.9791093],
    [115.5, 96.04815233],
    [116.5, 97.12768116],
    [117.5, 98.21750418],
    [118.5, 99.3174127],
    [119.5, 100.4271815],
    [120.5, 101.5465694],
    [121.5, 102.6753201],
    [122.5, 103.8131628],
    [123.5, 104.9598128],
    [124.5, 106.1149725],
    [125.5, 107.278332],
    [126.5, 108.4495701],
    [127.5, 109.6283553],
    [128.5, 110.8143461],
    [129.5, 112.0071925],
    [130.5, 113.2065369],
    [131.5, 114.4120129],
    [132.5, 115.623252],
    [133.5, 116.8398759],
    [134.5, 118.0615047],
    [135.5, 119.2877542],
    [136.5, 120.5182376],
    [137.5, 121.7525663],
    [138.5, 122.9903504],
    [139.5, 124.2312],
    [140.5, 125.4747254],
    [141.5, 126.7205381],
    [142.5, 127.9682514],
    [143.5, 129.2174809],
    [144.5, 130.4678451],
    [145.5, 131.7189663],
    [146.5, 132.9704704],
    [147.5, 134.2219879],
    [148.5, 135.4731543],
    [149.5, 136.7236099],
    [150.5, 137.9730008],
    [151.5, 139.220978],
    [152.5, 140.4672001],
    [153.5, 141.7113299],
    [154.5, 142.9530369],
    [155.5, 144.1919966],
    [156.5, 145.4278907],
    [157.5, 146.6604069],
    [158.5, 147.8892384],
    [159.5, 149.1140844],
    [160.5, 150.334649],
    [161.5, 151.55064],
    [162.5, 152.7617732],
    [163.5, 153.967766],
    [164.5, 155.1683401],
    [165.5, 156.3632204],
    [166.5, 157.5521345],
    [167.5, 158.7348122],
    [168.5, 159.9109844],
    [169.5, 161.0803829],
    [170.5, 162.2427396],
    [171.5, 163.3977853],
    [172.5, 164.5452498],
    [173.5, 165.6848604],
    [174.5, 166.8163413],
    [175.5, 167.9394131],
    [176.5, 169.0537919],
    [177.5, 170.1591884],
    [178.5, 171.2553046],
    [179.5, 172.3418468],
    [180.5, 173.4184979],
    [181.5, 174.4849436],
    [182.5, 175.540859],
    [183.5, 176.5859103],
    [184.5, 177.6197549],
    [185.5, 178.6420413],
    [186.5, 179.6524071],
    [187.5, 180.6504875],
    [188.5, 181.6358993],
    [189.5, 182.6082572],
    [190.5, 183.5671715],
    [191.5, 184.5122325],
    [192.5, 185.4430359],
    [193.5, 186.3591685],
    [194.5, 187.2602136],
    [195.5, 188.1457516],
    [196.5, 189.015362],
    [197.5, 189.8686253],
    [198.5, 190.7051245],
    [199.5, 191.5244472],
    [200.5, 192.3261882],
    [201.5, 193.1099516],
    [202.5, 193.8753536],
    [203.5, 194.622025],
    [204.5, 195.3496147],
    [205.5, 196.0577924],
    [206.5, 196.7462522],
    [207.5, 197.4147132],
    [208.5, 198.0629376],
    [209.5, 198.6907113],
    [210.5, 199.297866],
    [211.5, 199.8842789],
    [212.5, 200.4498785],
    [213.5, 200.9946499],
    [214.5, 201.5186411],
    [215.5, 202.0219695],
    [216.5, 202.5048291],
    [217.5, 202.967498],
    [218.5, 203.4103474],
    [219.5, 203.8338488],
    [220.5, 204.2385837],
    [221.5, 204.6252542],
    [222.5, 204.994694],
    [223.5, 205.3478768],
    [224.5, 205.6859397],
    [225.5, 206.0101781],
    [226.5, 206.3220722],
    [227.5, 206.623299],
    [228.5, 206.9157471],
    [229.5, 207.2015336],
    [230.5, 207.483021],
    [231.5, 207.7628351],
    [232.5, 208.0438839],
    [233.5, 208.329377],
    [234.5, 208.6228454],
    [235.5, 208.9281623],
    [236.5, 209.2495632],
    [237.5, 209.5916667],
    [238.5, 209.95949],
    [239.5, 210.3584847],
    [240, 210.5714914]

];

var wtage_male_97th = [
    [36.5, 39.70054799],
    [37.5, 40.18999365],
    [38.5, 40.68986779],
    [39.5, 41.20007679],
    [40.5, 41.7204702],
    [41.5, 42.25083042],
    [42.5, 42.79089285],
    [43.5, 43.3403722],
    [44.5, 43.89894903],
    [45.5, 44.46628919],
    [46.5, 45.04204441],
    [47.5, 45.62587632],
    [48.5, 46.21743826],
    [49.5, 46.81639497],
    [50.5, 47.42242377],
    [51.5, 48.03521824],
    [52.5, 48.65449158],
    [53.5, 49.2799793],
    [54.5, 49.91144154],
    [55.5, 50.54866483],
    [56.5, 51.19145926],
    [57.5, 51.83967635],
    [58.5, 52.49318549],
    [59.5, 53.15189007],
    [60.5, 53.81572361],
    [61.5, 54.48464989],
    [62.5, 55.15866237],
    [63.5, 55.83778367],
    [64.5, 56.52206468],
    [65.5, 57.21158355],
    [66.5, 57.90644446],
    [67.5, 58.60677627],
    [68.5, 59.31273088],
    [69.5, 60.02448168],
    [70.5, 60.74222176],
    [71.5, 61.46615627],
    [72.5, 62.19652188],
    [73.5, 62.93355433],
    [74.5, 63.67750569],
    [75.5, 64.42863768],
    [76.5, 65.18721944],
    [77.5, 65.95352553],
    [78.5, 66.72783383],
    [79.5, 67.5104236],
    [80.5, 68.30156707],
    [81.5, 69.10154995],
    [82.5, 69.91063906],
    [83.5, 70.72909919],
    [84.5, 71.55718885],
    [85.5, 72.39515175],
    [86.5, 73.24323039],
    [87.5, 74.10164777],
    [88.5, 74.97061596],
    [89.5, 75.85033287],
    [90.5, 76.74098126],
    [91.5, 77.64272802],
    [92.5, 78.5557234],
    [93.5, 79.48010039],
    [94.5, 80.4159668],
    [95.5, 81.36343241],
    [96.5, 82.3225698],
    [97.5, 83.2934384],
    [98.5, 84.27607852],
    [99.5, 85.27051124],
    [100.5, 86.27673813],
    [101.5, 87.29474123],
    [102.5, 88.32448317],
    [103.5, 89.36590533],
    [104.5, 90.41894123],
    [105.5, 91.48348521],
    [106.5, 92.55942599],
    [107.5, 93.64663145],
    [108.5, 94.74495056],
    [109.5, 95.85421426],
    [110.5, 96.9742358],
    [111.5, 98.10481113],
    [112.5, 99.24571941],
    [113.5, 100.3967235],
    [114.5, 101.5575634],
    [115.5, 102.7279813],
    [116.5, 103.9076908],
    [117.5, 105.0963956],
    [118.5, 106.2937869],
    [119.5, 107.4995433],
    [120.5, 108.7133323],
    [121.5, 109.9348107],
    [122.5, 111.1636259],
    [123.5, 112.3994164],
    [124.5, 113.6418127],
    [125.5, 114.8904387],
    [126.5, 116.1449121],
    [127.5, 117.4048457],
    [128.5, 118.6698483],
    [129.5, 119.9395253],
    [130.5, 121.2134834],
    [131.5, 122.4913105],
    [132.5, 123.7726336],
    [133.5, 125.0570366],
    [134.5, 126.3441291],
    [135.5, 127.6335181],
    [136.5, 128.9248135],
    [137.5, 130.2176299],
    [138.5, 131.5115866],
    [139.5, 132.8063085],
    [140.5, 134.1014274],
    [141.5, 135.3965817],
    [142.5, 136.6914179],
    [143.5, 137.9855908],
    [144.5, 139.2787642],
    [145.5, 140.5706109],
    [146.5, 141.860814],
    [147.5, 143.1490663],
    [148.5, 144.4350716],
    [149.5, 145.7185439],
    [150.5, 146.9992085],
    [151.5, 148.2767989],
    [152.5, 149.5510689],
    [153.5, 150.8217724],
    [154.5, 152.0886785],
    [155.5, 153.3515674],
    [156.5, 154.6102298],
    [157.5, 155.8644666],
    [158.5, 157.1140885],
    [159.5, 158.3589157],
    [160.5, 159.5987771],
    [161.5, 160.8335024],
    [162.5, 162.0629453],
    [163.5, 163.2869527],
    [164.5, 164.505381],
    [165.5, 165.7180913],
    [166.5, 166.9249483],
    [167.5, 168.1258193],
    [168.5, 169.3205731],
    [169.5, 170.5090784],
    [170.5, 171.6912026],
    [171.5, 172.8668105],
    [172.5, 174.0357625],
    [173.5, 175.1979135],
    [174.5, 176.3531109],
    [175.5, 177.501193],
    [176.5, 178.6419877],
    [177.5, 179.7753102],
    [178.5, 180.9009508],
    [179.5, 182.0187282],
    [180.5, 183.1283774],
    [181.5, 184.2296585],
    [182.5, 185.3223],
    [183.5, 186.4060083],
    [184.5, 187.4804666],
    [185.5, 188.5453334],
    [186.5, 189.6002338],
    [187.5, 190.6447984],
    [188.5, 191.6785829],
    [189.5, 192.7011477],
    [190.5, 193.7120379],
    [191.5, 194.7107175],
    [192.5, 195.6966723],
    [193.5, 196.6693482],
    [194.5, 197.6281668],
    [195.5, 198.5725272],
    [196.5, 199.501808],
    [197.5, 200.4153698],
    [198.5, 201.3125579],
    [199.5, 202.1927059],
    [200.5, 203.055139],
    [201.5, 203.8991783],
    [202.5, 204.7241452],
    [203.5, 205.5293659],
    [204.5, 206.3141772],
    [205.5, 207.0779317],
    [206.5, 207.8200037],
    [207.5, 208.5397797],
    [208.5, 209.2367371],
    [209.5, 209.9103326],
    [210.5, 210.5600964],
    [211.5, 211.1856172],
    [212.5, 211.7865505],
    [213.5, 212.3626283],
    [214.5, 212.913669],
    [215.5, 213.4395878],
    [216.5, 213.9404087],
    [217.5, 214.4162768],
    [218.5, 214.8674894],
    [219.5, 215.2944435],
    [220.5, 215.6977354],
    [221.5, 216.0781288],
    [222.5, 216.4365824],
    [223.5, 216.7742497],
    [224.5, 217.0925763],
    [225.5, 217.3931896],
    [226.5, 217.6780166],
    [227.5, 217.9492814],
    [228.5, 218.2095302],
    [229.5, 218.4616563],
    [230.5, 218.7089274],
    [231.5, 218.9550134],
    [232.5, 219.2040168],
    [233.5, 219.4605031],
    [234.5, 219.7295328],
    [235.5, 220.0166943],
    [236.5, 220.3281364],
    [237.5, 220.6706016],
    [238.5, 221.0514372],
    [239.5, 221.4787045],
    [240, 221.712438]

];

$(function chartSetup() {
    $('#container').highcharts({
        chart: {
            type: 'areaspline'
        },
        title: {
            text: 'Weight Growth Chart (Males)'
        },
        legend: {
            layout: 'horizontal',
            align: 'center',
            verticalAlign: 'bottom',
            borderWidth: 1,
            backgroundColor: '#FFFFFF',
            itemStyle: {
                cursor: 'pointer',
                color: '#274b6d',
                fontSize: '12px'
            }
        },
        plotOptions: {
            areaspline: {
                fillOpacity: 0.2
            },
            series: {
                minPointLength: 1,
                shadow: false,
                events: {
                    legendItemClick: function () {
                        if (this.name == 'Percentiles') {
                            toggleBands(chart);
                        }
                    }
                }
            }
        },
        xAxis: {
            title: {
                text: 'Age (months)'
            },
            labels: {
                rotation: -90,
                step: 5
            },
            tickInterval: 5
        },
        yAxis: {
            title: {
                text: 'Weight (pounds)'
            },
            min: 23
        },
        tooltip: {
            shared: true,
            valueSuffix: ' pounds',
            valueDecimals: 2
        },
        credits: {
            enabled: false
        },
        series: [{
            name: '3rd Percentile',
            data: wtage_male_3rd,
            marker: {
                enabled: false
            }
        }, {
            name: '5th Percentile',
            data: wtage_male_5th,
            marker: {
                enabled: false
            }
        }, {
            name: '10th Percentile',
            data: wtage_male_10th,
            marker: {
                enabled: false
            }
        }, {
            name: '25th Percentile',
            data: wtage_male_25th,
            marker: {
                enabled: false
            }
        }, {
            name: '50th Percentile',
            data: wtage_male_50th,
            marker: {
                enabled: false
            }
        }, {
            name: '75th Percentile',
            data: wtage_male_75th,
            marker: {
                enabled: false
            }
        }, {
            name: '90th Percentile',
            data: wtage_male_90th,
            marker: {
                enabled: false
            }
        }, {
            name: '95th Percentile',
            data: wtage_male_95th,
            marker: {
                enabled: false
            }
        }, {
            name: '97th Percentile',
            data: wtage_male_97th,
            marker: {
                enabled: false
            }
        }]
    });
});

function toggleBands(chart) {
    $.each(chart.xAxis, function (index, elX) {
        $.each(elX.plotLinesAndBands, function (index, el) {
            if (el.svgElem !== undefined) {
                el.svgElem[el.visible ? 'show' : 'hide']();
                el.visible = !el.visible;
            }
        });
    });
}

$('.toggle-trigger').click(function () {
    var target = $(this).attr('data-target');

    $('#' + target).slideToggle('slow');

    if ($(this).hasClass('plus')) {
        $(this).addClass('minus').removeClass('plus');
    } else {
        $(this).addClass('plus').removeClass('minus');
    }
});